<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
1黄嫩三拉康抗诉嫩老家桑扶老ajjaljfa就<br>
2分开干炸就看adjsf拉到监开点加拉;dkjaljoieujf<br>
<button id="btn" disabled onclick="location.href='login_demo.html'">同意(10s)</button>
</body>
<script>
    var i = 9;
    function show() {
        var btn = document.getElementById("btn");
        btn.innerHTML="同意("+i+"s)";
        i--;
        if (i==-1 ){
            clearInterval(f);
            btn.innerHTML="同意";
            btn.disabled = false;
            //location.href='login_demo.html'
            //自动跳转；
        }
    }
    var f= setInterval("show()",100);

</script>
</html>